<layout name="layout" />
<form method="post" action="" name="listForm">
    <div class="list-div" id="listDiv">
        <table cellpadding="3" cellspacing="1">
            <tr>
                <th>id</th>
                <th>分类名称</th>
                <th>操作</th>
            </tr>
            <?php foreach ($data as $k => $v): ?>
            <tr class="tron">
                <td><?php echo $v['id']; ?></td>
                <td><?php echo str_repeat('-', $v['level'] * 8) . $v['cat_name']; ?></td>
                <td align="center">
	                <a href="<?php echo U('edit?id='.$v['id'].'&p='.I('get.p', 1)); ?>" title="编辑">编辑</a> |
	                <a onclick="return confirm('确定要删除吗？');" href="<?php echo U('delete?id='.$v['id']); ?>" title="移除">移除</a> 
                </td>
            </tr>
            <?php endforeach; ?>
        </table>
    </div>
</form>

<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Admin/Js/tron.js"></script>